package com.xatime.client.demo;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by mason on 18-12-4.
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping
    public Object index(Authentication authentication) {
        System.out.println(authentication);
        return "OK";
    }
}
